<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Include/gzll/nrf_gzll.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>



<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF Gazell
   &#160;<span id="projectnumber">version 0.4.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nrf__gzll_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Include/gzll/nrf_gzll.h</div>  </div>
</div>
<div class="contents">
<a href="nrf__gzll_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision: 15173 $</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef NRF_GZLL_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define NRF_GZLL_H__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;stdbool.h&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;nrf.h&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="nrf__gzll__constants_8h.html" title="Gazell Link Layer constants and default values.">nrf_gzll_constants.h</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 
<a name="l00040"></a><a class="code" href="group__gzll__02__api.html#ga2321f5573e2cd70651559e6380433eda">00040</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00041"></a>00041 {
<a name="l00042"></a><a class="code" href="group__gzll__02__api.html#gga2321f5573e2cd70651559e6380433edaaf43e2f82283221e9ecacaca178934e47">00042</a>   <a class="code" href="group__gzll__02__api.html#gga2321f5573e2cd70651559e6380433edaaf43e2f82283221e9ecacaca178934e47" title="Device mode.">NRF_GZLL_MODE_DEVICE</a>,       
<a name="l00043"></a><a class="code" href="group__gzll__02__api.html#gga2321f5573e2cd70651559e6380433edaa9f1389775c6d9e971b3bf299e2d8f4bd">00043</a>   <a class="code" href="group__gzll__02__api.html#gga2321f5573e2cd70651559e6380433edaa9f1389775c6d9e971b3bf299e2d8f4bd" title="Host mode.">NRF_GZLL_MODE_HOST</a>,         
<a name="l00044"></a>00044 } <a class="code" href="group__gzll__02__api.html#ga2321f5573e2cd70651559e6380433eda" title="Enumerator used for selecting Gazell mode.">nrf_gzll_mode_t</a>;
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 
<a name="l00052"></a><a class="code" href="group__gzll__02__api.html#gad45683bddfd8a170f89280b722f7744c">00052</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00053"></a>00053 {
<a name="l00054"></a><a class="code" href="group__gzll__02__api.html#ggad45683bddfd8a170f89280b722f7744ca7ac745d687a1dc56962bed8a98ba719f">00054</a>   <a class="code" href="group__gzll__02__api.html#ggad45683bddfd8a170f89280b722f7744ca7ac745d687a1dc56962bed8a98ba719f" title="Start on previous successful channel.">NRF_GZLL_DEVICE_CHANNEL_SELECTION_POLICY_USE_SUCCESSFUL</a>, 
<a name="l00055"></a><a class="code" href="group__gzll__02__api.html#ggad45683bddfd8a170f89280b722f7744ca97b439d85d2666cb9676c45f0db57a55">00055</a>   <a class="code" href="group__gzll__02__api.html#ggad45683bddfd8a170f89280b722f7744ca97b439d85d2666cb9676c45f0db57a55" title="Start on channel currently monitored by Host.">NRF_GZLL_DEVICE_CHANNEL_SELECTION_POLICY_USE_CURRENT</a>,    
<a name="l00056"></a>00056 } <a class="code" href="group__gzll__02__api.html#gad45683bddfd8a170f89280b722f7744c" title="Enumerator used for selecting Gazell Device channel selection policy.">nrf_gzll_device_channel_selection_policy_t</a>;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 
<a name="l00063"></a><a class="code" href="group__gzll__02__api.html#ga838445eeb3dabb47b746708bf4cf851d">00063</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00064"></a>00064 {
<a name="l00065"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da3eab1d41cecc3cc7ba907c4ac7f27699">00065</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da3eab1d41cecc3cc7ba907c4ac7f27699" title="4 dBm transmit power.">NRF_GZLL_TX_POWER_4_DBM</a>,          
<a name="l00066"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da6925d58d3c9fa86f79d475976818c318">00066</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da6925d58d3c9fa86f79d475976818c318" title="0 dBm transmit power.">NRF_GZLL_TX_POWER_0_DBM</a>,          
<a name="l00067"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851dafef1f0ca63fb9be78fe017c65a914eb4">00067</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851dafef1f0ca63fb9be78fe017c65a914eb4">NRF_GZLL_TX_POWER_N4_DBM</a>,         
<a name="l00068"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da0e59e0dac9763f57f4ed7080750c09f8">00068</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da0e59e0dac9763f57f4ed7080750c09f8">NRF_GZLL_TX_POWER_N8_DBM</a>,         
<a name="l00069"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da9f9f798b37a40421751e81f3b6f8823c">00069</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da9f9f798b37a40421751e81f3b6f8823c">NRF_GZLL_TX_POWER_N12_DBM</a>,        
<a name="l00070"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da9e5d236d4715d34ee730727b5babb149">00070</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da9e5d236d4715d34ee730727b5babb149">NRF_GZLL_TX_POWER_N16_DBM</a>,        
<a name="l00071"></a><a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da35ef035819220255bfc7f87f4eafd797">00071</a>   <a class="code" href="group__gzll__02__api.html#gga838445eeb3dabb47b746708bf4cf851da35ef035819220255bfc7f87f4eafd797">NRF_GZLL_TX_POWER_N20_DBM</a>         
<a name="l00072"></a>00072 } <a class="code" href="group__gzll__02__api.html#ga838445eeb3dabb47b746708bf4cf851d" title="Enumerator used for selecting the transmit (TX) power.">nrf_gzll_tx_power_t</a>;
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 
<a name="l00079"></a><a class="code" href="group__gzll__02__api.html#gabb5224046a930344cc3f5586bf9b064a">00079</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00080"></a>00080 {
<a name="l00081"></a><a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aab5c82f8676fea3d65782748a7be344f5">00081</a>   <a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aab5c82f8676fea3d65782748a7be344f5" title="250 Kbps datarate.">NRF_GZLL_DATARATE_250KBIT</a>,    
<a name="l00082"></a><a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aa246aa294dc264af2beeadae662e0aa24">00082</a>   <a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aa246aa294dc264af2beeadae662e0aa24" title="1 Mbps datarate.">NRF_GZLL_DATARATE_1MBIT</a>,      
<a name="l00083"></a><a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aa34b5649392e2948bbb7f284927781883">00083</a>   <a class="code" href="group__gzll__02__api.html#ggabb5224046a930344cc3f5586bf9b064aa34b5649392e2948bbb7f284927781883" title="2 Mbps datarate.">NRF_GZLL_DATARATE_2MBIT</a>       
<a name="l00084"></a>00084 } <a class="code" href="group__gzll__02__api.html#gabb5224046a930344cc3f5586bf9b064a" title="Enumerator used for selecting the radio datarate.">nrf_gzll_datarate_t</a>;
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00091"></a><a class="code" href="group__gzll__02__api.html#gaa51ebe606da1801bb1ce72b2257356ab">00091</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00092"></a>00092 {
<a name="l00093"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abace4bbba0d262295c16f3156ae0c9907b">00093</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abace4bbba0d262295c16f3156ae0c9907b" title="No error has been detected.">NRF_GZLL_ERROR_CODE_NO_ERROR</a>                            =  0,
<a name="l00095"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba30549d446599d7530e14ea19b5ce99e2">00095</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba30549d446599d7530e14ea19b5ce99e2" title="The function NRF_GZLL_init failed.">NRF_GZLL_ERROR_CODE_FAILED_TO_INITIALIZE</a>                =  1,
<a name="l00097"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba2b15f5f975ef14b5191e5262ef94f93d">00097</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba2b15f5f975ef14b5191e5262ef94f93d">NRF_GZLL_ERROR_CODE_ATTEMPTED_TO_CONFIGURE_WHEN_ENABLED</a> =  2,
<a name="l00100"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaded91da689711dd5a654cf81fc18d835">00100</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaded91da689711dd5a654cf81fc18d835" title="A null pointer was given as an input to a function.">NRF_GZLL_ERROR_CODE_POINTER_IS_NULL</a>                     =  3,
<a name="l00102"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abac4918d5a5f1f69278c4009143b18f1bc">00102</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abac4918d5a5f1f69278c4009143b18f1bc" title="An invalid pipe number was given as an input to a function.">NRF_GZLL_ERROR_CODE_INVALID_PIPE</a>                        =  4,
<a name="l00104"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba380b30b67d0ba401d7472ea3974b2af6">00104</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba380b30b67d0ba401d7472ea3974b2af6">NRF_GZLL_ERROR_CODE_INVALID_MODE</a>                        =  5,
<a name="l00107"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba9da1b5f94da0fa0e3c64b52feac8ad77">00107</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba9da1b5f94da0fa0e3c64b52feac8ad77" title="An invalid payload length was given as an input to a function.">NRF_GZLL_ERROR_CODE_INVALID_PAYLOAD_LENGTH</a>              =  6,
<a name="l00109"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abac830d264d08837ad86b5be4167b52463">00109</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abac830d264d08837ad86b5be4167b52463" title="An invalid channel table size was given as an input to a function.">NRF_GZLL_ERROR_CODE_INVALID_CHANNEL_TABLE_SIZE</a>          =  7,
<a name="l00111"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba8d2a830e8e47d991cca27738eafc8606">00111</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba8d2a830e8e47d991cca27738eafc8606">NRF_GZLL_ERROR_CODE_INSUFFICIENT_PACKETS_AVAILABLE</a>      =  8,
<a name="l00114"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaa3ccbb11bd73955faf2d7355bcb1168f">00114</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaa3ccbb11bd73955faf2d7355bcb1168f" title="There is insufficient space in the TX FIFO for the data packet.">NRF_GZLL_ERROR_CODE_ATTEMPTED_TO_ADD_TO_FULL_FIFO</a>     =  9,
<a name="l00116"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba49865c493f4c9896945c3fa2a6175895">00116</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba49865c493f4c9896945c3fa2a6175895" title="There is insufficient space in the RX FIFO for the ACK.">NRF_GZLL_ERROR_CODE_NO_SPACE_IN_RX_FIFO_FOR_ACK</a>        = 10,
<a name="l00118"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356ababc0c04d564d90f4216797e7816e9e68b">00118</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356ababc0c04d564d90f4216797e7816e9e68b" title="Attempted to fetch a packet from an empty FIFO. Use the functions nrf_gzll_get_tx_fifo_packet_count()...">NRF_GZLL_ERROR_CODE_ATTEMPTED_TO_FETCH_FROM_EMPTY_FIFO</a>  = 11,
<a name="l00120"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abacffaff5d6b7b811215ddafc76ee9ea84">00120</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abacffaff5d6b7b811215ddafc76ee9ea84" title="Attempted to fetch a packet from an empty FIFO. Use the functions nrf_gzll_get_tx_fifo_packet_count()...">NRF_GZLL_ERROR_CODE_ATTEMPTED_TO_FLUSH_WHEN_ENABLED</a>    = 12,
<a name="l00122"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaf3b942aca16291c78ebc00b7d80cbbf4">00122</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abaf3b942aca16291c78ebc00b7d80cbbf4" title="Attempted to set a variable which was not valid.">NRF_GZLL_ERROR_CODE_INVALID_PARAMETER</a>                   = 14,
<a name="l00124"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba0653cf03943e6223a42945e8db7d9870">00124</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba0653cf03943e6223a42945e8db7d9870" title="An internal assert occurred.">NRF_GZLL_ERROR_CODE_INTERNAL_ASSERT_OCCURRED</a>            = 15,
<a name="l00126"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba2b0ac52c845b024691fa0a3b483651fb">00126</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356aba2b0ac52c845b024691fa0a3b483651fb" title="A callback was called but not implemented by the application.">NRF_GZLL_ERROR_CODE_CALLBACK_NOT_IMPLEMENTED</a>            = 16,
<a name="l00128"></a><a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abad28c8f662a56566e788968242195ae43">00128</a>   <a class="code" href="group__gzll__02__api.html#ggaa51ebe606da1801bb1ce72b2257356abad28c8f662a56566e788968242195ae43" title="Number of possible error codes.">NRF_GZLL_ERROR_CODE_NUMBER_OF_ERROR_CODES</a>               = 17,
<a name="l00130"></a>00130 } <a class="code" href="group__gzll__02__api.html#gaa51ebe606da1801bb1ce72b2257356ab" title="Enumerator used for error codes for Gazell API functions.">nrf_gzll_error_code_t</a>;
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 
<a name="l00138"></a>00138 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00139"></a>00139 {
<a name="l00140"></a>00140   <span class="keywordtype">bool</span> payload_received_in_ack;   
<a name="l00142"></a>00142   uint16_t num_tx_attempts;
<a name="l00144"></a>00144   uint16_t num_channel_switches;
<a name="l00146"></a>00146   int16_t rssi;
<a name="l00148"></a>00148 } <a class="code" href="structnrf__gzll__device__tx__info__t.html" title="Data structure containing information about the last packet transmission.">nrf_gzll_device_tx_info_t</a>;
<a name="l00149"></a>00149 
<a name="l00155"></a>00155 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00156"></a>00156 {
<a name="l00157"></a>00157   <span class="keywordtype">bool</span> packet_removed_from_tx_fifo;
<a name="l00159"></a>00159   int16_t rssi;
<a name="l00161"></a>00161 } <a class="code" href="structnrf__gzll__host__rx__info__t.html" title="Data structure containing information about the last packet received.">nrf_gzll_host_rx_info_t</a>;
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 <span class="comment">/******************************************************************************/</span>
<a name="l00169"></a>00169 <span class="comment">/******************************************************************************/</span>
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 
<a name="l00180"></a>00180 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gacba07d9c893b4673c563ced97cccba94" title="Initialize Gazell.">nrf_gzll_init</a>(<a class="code" href="group__gzll__02__api.html#ga2321f5573e2cd70651559e6380433eda" title="Enumerator used for selecting Gazell mode.">nrf_gzll_mode_t</a> mode);
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 
<a name="l00191"></a>00191 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gadfb1003b245b019481334e6d087f928e" title="Enable Gazell.">nrf_gzll_enable</a>(<span class="keywordtype">void</span>);
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 
<a name="l00202"></a>00202 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#ga20e0e3ca35dda6b9220b1ddce7565687" title="Disable Gazell.">nrf_gzll_disable</a>(<span class="keywordtype">void</span>);
<a name="l00203"></a>00203 
<a name="l00209"></a>00209 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gab292792f57b5b3d663c141ca3bb08f2f">nrf_gzll_is_enabled</a>(<span class="keywordtype">void</span>);
<a name="l00210"></a>00210 
<a name="l00214"></a>00214 <span class="comment">/******************************************************************************/</span>
<a name="l00217"></a>00217 <span class="comment">/******************************************************************************/</span>
<a name="l00218"></a>00218 
<a name="l00219"></a>00219 
<a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#gac1306762dc2ccfc5c2bbdbe2d85a93aa" title="ACK received callback (Device mode only).">nrf_gzll_device_tx_success</a>(uint32_t pipe, <a class="code" href="structnrf__gzll__device__tx__info__t.html" title="Data structure containing information about the last packet transmission.">nrf_gzll_device_tx_info_t</a> tx_info);
<a name="l00232"></a>00232 
<a name="l00233"></a>00233 
<a name="l00245"></a>00245 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#ga0642fed399ed3ec41406cd4323edf5ad" title="Transmission failed callback (Device mode only).">nrf_gzll_device_tx_failed</a>(uint32_t pipe, <a class="code" href="structnrf__gzll__device__tx__info__t.html" title="Data structure containing information about the last packet transmission.">nrf_gzll_device_tx_info_t</a> tx_info); 
<a name="l00246"></a>00246 
<a name="l00247"></a>00247 
<a name="l00252"></a>00252 <span class="comment">/******************************************************************************/</span>
<a name="l00255"></a>00255 <span class="comment">/******************************************************************************/</span>
<a name="l00256"></a>00256                                                       
<a name="l00266"></a>00266 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#ga116b8ce684c3f6fe8c63c371b913aa3e" title="Data packet received callback (Host mode only).">nrf_gzll_host_rx_data_ready</a>(uint32_t pipe, <a class="code" href="structnrf__gzll__host__rx__info__t.html" title="Data structure containing information about the last packet received.">nrf_gzll_host_rx_info_t</a> rx_info);
<a name="l00267"></a>00267 
<a name="l00268"></a>00268 
<a name="l00271"></a>00271 <span class="comment">/******************************************************************************/</span>
<a name="l00274"></a>00274 <span class="comment">/******************************************************************************/</span>
<a name="l00275"></a>00275 
<a name="l00276"></a>00276 
<a name="l00284"></a>00284 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#ga722e2ee917072fca60a50a23d8c84414" title="Disabled callback.">nrf_gzll_disabled</a>(<span class="keywordtype">void</span>);
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 
<a name="l00290"></a>00290 <span class="comment">/******************************************************************************/</span>
<a name="l00293"></a>00293 <span class="comment">/******************************************************************************/</span>
<a name="l00294"></a>00294 
<a name="l00309"></a>00309 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga1c0b1d1838e032af28c35d7c3e0603e0" title="Add a packet to the tail of the TX FIFO.">nrf_gzll_add_packet_to_tx_fifo</a>(uint32_t pipe, uint8_t * payload, uint32_t length);
<a name="l00310"></a>00310 
<a name="l00311"></a>00311 
<a name="l00323"></a>00323 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga419c8ce6a3e08d5dec8b50ef88b3cc2b" title="Fetch a packet from the head of the RX FIFO.">nrf_gzll_fetch_packet_from_rx_fifo</a>(uint32_t pipe, uint8_t * payload, uint32_t* length);
<a name="l00324"></a>00324 
<a name="l00325"></a>00325 
<a name="l00334"></a>00334 int32_t <a class="code" href="group__gzll__02__api.html#gaad1e741b39d5eea07f64538d38848071" title="Get the number of packets in the TX FIFO on a specific pipe.">nrf_gzll_get_tx_fifo_packet_count</a>(uint32_t pipe);
<a name="l00335"></a>00335 
<a name="l00336"></a>00336 
<a name="l00344"></a>00344 int32_t <a class="code" href="group__gzll__02__api.html#gade39485ec6ab77188c1798c76e564c28" title="Get the number of packets in the RX FIFO on a specific pipe.">nrf_gzll_get_rx_fifo_packet_count</a>(uint32_t pipe);
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 
<a name="l00355"></a>00355 uint32_t <a class="code" href="group__gzll__02__api.html#ga7243f6f81a93686cfc48623c37695dcc" title="Get the total number of packets residing in all TX and RX FIFOs.">nrf_gzll_get_total_allocated_packet_count</a>(<span class="keywordtype">void</span>);
<a name="l00356"></a>00356 
<a name="l00357"></a>00357 
<a name="l00369"></a>00369 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga6c3f739115d7087f2cb0db11e7af54c8" title="Check if adding a packet to a pipe&#39;s TX FIFO should be successful.">nrf_gzll_ok_to_add_packet_to_tx_fifo</a>(uint32_t pipe);
<a name="l00370"></a>00370 
<a name="l00384"></a>00384 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga84321e0115f0b19f1c9c75c3a1b818bc" title="Flush the RX FIFO for a specific pipe.">nrf_gzll_flush_tx_fifo</a>(uint32_t pipe);
<a name="l00385"></a>00385 
<a name="l00386"></a>00386 
<a name="l00397"></a>00397 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gaf28a21bdbcc64b12e1c84f95f2371603" title="Flush the RX FIFO for a specific pipe.">nrf_gzll_flush_rx_fifo</a>(uint32_t pipe);
<a name="l00398"></a>00398 
<a name="l00399"></a>00399 
<a name="l00403"></a>00403 <span class="comment">/******************************************************************************/</span>
<a name="l00412"></a>00412 <span class="comment">/******************************************************************************/</span>
<a name="l00413"></a>00413 
<a name="l00414"></a>00414 
<a name="l00424"></a>00424 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gaac5d6bc55829dc0cecc0eaf4889f8592" title="Set the mode.">nrf_gzll_set_mode</a>(<a class="code" href="group__gzll__02__api.html#ga2321f5573e2cd70651559e6380433eda" title="Enumerator used for selecting Gazell mode.">nrf_gzll_mode_t</a> mode);
<a name="l00425"></a>00425 
<a name="l00426"></a>00426 
<a name="l00432"></a>00432 <a class="code" href="group__gzll__02__api.html#ga2321f5573e2cd70651559e6380433eda" title="Enumerator used for selecting Gazell mode.">nrf_gzll_mode_t</a> <a class="code" href="group__gzll__02__api.html#gaeffe498ba9c2aed68eb2c516eff61574" title="Get function counterpart to nrf_gzll_set_mode().">nrf_gzll_get_mode</a>(<span class="keywordtype">void</span>);
<a name="l00433"></a>00433 
<a name="l00434"></a>00434 
<a name="l00450"></a>00450 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gada5d1b9ca90be29ebc600a977cb1ba2d" title="Set the base address for pipe 0.">nrf_gzll_set_base_address_0</a>(uint32_t base_address);
<a name="l00451"></a>00451 
<a name="l00452"></a>00452 
<a name="l00458"></a>00458 uint32_t <a class="code" href="group__gzll__02__api.html#gaaf2d35d57c38533a2f993f6d6bbf7e88" title="Get function counterpart to nrf_gzll_set_base_address_0().">nrf_gzll_get_base_address_0</a>(<span class="keywordtype">void</span>);
<a name="l00459"></a>00459 
<a name="l00460"></a>00460 
<a name="l00471"></a>00471 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gafae33f3818b7c9a64d368352e7218a08" title="Set the base address for pipes 1-7.">nrf_gzll_set_base_address_1</a>(uint32_t base_address);
<a name="l00472"></a>00472 
<a name="l00473"></a>00473 
<a name="l00479"></a>00479 uint32_t <a class="code" href="group__gzll__02__api.html#ga3b5d543cc896193e1fe6d7eeffeba6b3" title="Get function counterpart to nrf_gzll_set_base_address_1().">nrf_gzll_get_base_address_1</a>(<span class="keywordtype">void</span>);
<a name="l00480"></a>00480 
<a name="l00481"></a>00481 
<a name="l00494"></a>00494 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga8ddb9c88340dfa0dd26a49f5a233bc14" title="Set the address prefix byte for a specific pipe.">nrf_gzll_set_address_prefix_byte</a>(uint32_t pipe, uint8_t address_prefix_byte);
<a name="l00495"></a>00495 
<a name="l00496"></a>00496 
<a name="l00509"></a>00509 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga0af9242850d7e512721f941fe12bd6bc" title="Get function counterpart to nrf_gzll_set_address_prefix_byte().">nrf_gzll_get_address_prefix_byte</a>(uint32_t pipe, uint8_t* out_address_prefix_byte);
<a name="l00510"></a>00510 
<a name="l00511"></a>00511 
<a name="l00525"></a>00525 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga7c41a4d1c773221ad106ebc67832da77" title="Set which pipes shall listen for packets in Host mode.">nrf_gzll_set_rx_pipes_enabled</a>(uint32_t pipes);
<a name="l00526"></a>00526 
<a name="l00527"></a>00527 
<a name="l00533"></a>00533 uint32_t <a class="code" href="group__gzll__02__api.html#gac3b61acd9649d1bf7fe951176b6b6750" title="Get function counterpart to nrf_gzll_set_rx_pipes_enabled().">nrf_gzll_get_rx_pipes_enabled</a>(<span class="keywordtype">void</span>);
<a name="l00534"></a>00534 
<a name="l00535"></a>00535 
<a name="l00553"></a>00553 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga3347094a64c07793c773c4fdf4bc4bff" title="Set the timeslot period.">nrf_gzll_set_timeslot_period</a>(uint32_t period_us);
<a name="l00554"></a>00554 
<a name="l00555"></a>00555 
<a name="l00561"></a>00561 uint32_t <a class="code" href="group__gzll__02__api.html#ga4fa5dc9ec5f9686ce38fffbb2eded3e2" title="Get function counterpart to nrf_gzll_get_timeslot_period().">nrf_gzll_get_timeslot_period</a>(<span class="keywordtype">void</span>);
<a name="l00562"></a>00562 
<a name="l00563"></a>00563 
<a name="l00586"></a>00586 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga692ed4d88a064fdf9a4e69f939582911" title="Set the Device channel selection policy.">nrf_gzll_set_device_channel_selection_policy</a>(<a class="code" href="group__gzll__02__api.html#gad45683bddfd8a170f89280b722f7744c" title="Enumerator used for selecting Gazell Device channel selection policy.">nrf_gzll_device_channel_selection_policy_t</a> policy);
<a name="l00587"></a>00587 
<a name="l00588"></a>00588 
<a name="l00594"></a>00594 <a class="code" href="group__gzll__02__api.html#gad45683bddfd8a170f89280b722f7744c" title="Enumerator used for selecting Gazell Device channel selection policy.">nrf_gzll_device_channel_selection_policy_t</a> <a class="code" href="group__gzll__02__api.html#ga81c1cb06617bc0ceb9efa2f461d0f5c6" title="Get function counterpart to nrf_gzll_set_device_channel_selection_policy().">nrf_gzll_get_device_channel_selection_policy</a>(<span class="keywordtype">void</span>);
<a name="l00595"></a>00595 
<a name="l00596"></a>00596 
<a name="l00616"></a>00616 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#gaf636a5a1aa2d4a791849de510b69a604" title="Set the number of timeslots that Gazell shall reside on a single channel before switching to another ...">nrf_gzll_set_timeslots_per_channel</a>(uint32_t timeslots);
<a name="l00617"></a>00617 
<a name="l00618"></a>00618 
<a name="l00624"></a>00624 uint32_t <a class="code" href="group__gzll__02__api.html#ga815a055f876aef1dded974fae68eb976" title="Get function counterpart to nrf_gzll_set_timeslots_per_channel().">nrf_gzll_get_timeslots_per_channel</a>(<span class="keywordtype">void</span>);
<a name="l00625"></a>00625 
<a name="l00626"></a>00626 
<a name="l00646"></a>00646 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga8a1bef2e6f32bd8dc55e9abde3007aed" title="Set the number of timeslots that a Gazell shall reside on a single channel before switching to anothe...">nrf_gzll_set_timeslots_per_channel_when_device_out_of_sync</a>(uint32_t timeslots);
<a name="l00647"></a>00647 
<a name="l00648"></a>00648 
<a name="l00655"></a>00655 uint32_t <a class="code" href="group__gzll__02__api.html#ga16188f10fcefb950bc8d7f3498214bfa" title="Get function counterpart to nrf_gzll_set_timeslots_per_channel_when_device_out_of_sync().">nrf_gzll_get_timeslots_per_channel_when_device_out_of_sync</a>(<span class="keywordtype">void</span>);
<a name="l00656"></a>00656 
<a name="l00657"></a>00657 
<a name="l00669"></a>00669 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga1b34f8db6bfac6c6e232c2767a260bf3" title="Set the number of timeslots after a successful reception of a Device or Host packet that the Gazell L...">nrf_gzll_set_sync_lifetime</a>(uint32_t lifetime);
<a name="l00670"></a>00670 
<a name="l00671"></a>00671 
<a name="l00677"></a>00677 uint32_t <a class="code" href="group__gzll__02__api.html#gabefa7b61295caa3d3fc1faaf594286bd" title="Get function counterpart to nrf_gzll_set_sync_lifetime().">nrf_gzll_get_sync_lifetime</a>(<span class="keywordtype">void</span>);
<a name="l00678"></a>00678 
<a name="l00692"></a>00692 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga6e1c4ec6c4f7acf92a97bffbb6b89333" title="Set the maximum number of TX attempts that can be used for a single packet.">nrf_gzll_set_max_tx_attempts</a>(uint16_t max_tx_attempts);
<a name="l00693"></a>00693 
<a name="l00694"></a>00694 
<a name="l00700"></a>00700 uint16_t <a class="code" href="group__gzll__02__api.html#gaf74cd71124b955a69d7db6ea401631c6" title="Get function counterpart to nrf_gzll_set_max_tx_attempts().">nrf_gzll_get_max_tx_attempts</a>(<span class="keywordtype">void</span>); 
<a name="l00701"></a>00701 
<a name="l00702"></a>00702 
<a name="l00718"></a>00718 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga1aa10efb06cf0cd2a5b197a4cd65deaa" title="Set the table of Radio Frequency (RF) channels.">nrf_gzll_set_channel_table</a>(uint8_t* channel_table, uint32_t size);
<a name="l00719"></a>00719 
<a name="l00720"></a>00720 
<a name="l00733"></a>00733 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga803e8873a16e0379a752d6252da51fb5" title="Get the table of Radio Frequency (RF) channels.">nrf_gzll_get_channel_table</a>(uint8_t* channel_table, uint32_t* size);
<a name="l00734"></a>00734 
<a name="l00735"></a>00735 
<a name="l00741"></a>00741 uint32_t <a class="code" href="group__gzll__02__api.html#gad8c90e87c445372cde7175b4a55d6bec" title="Get the current channel table size.">nrf_gzll_get_channel_table_size</a>(<span class="keywordtype">void</span>);
<a name="l00742"></a>00742 
<a name="l00743"></a>00743 
<a name="l00752"></a>00752 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga5d1f1ac31b3e851935545858529e6420" title="Set the radio TX power.">nrf_gzll_set_tx_power</a>(<a class="code" href="group__gzll__02__api.html#ga838445eeb3dabb47b746708bf4cf851d" title="Enumerator used for selecting the transmit (TX) power.">nrf_gzll_tx_power_t</a> tx_power);
<a name="l00753"></a>00753 
<a name="l00754"></a>00754 
<a name="l00760"></a>00760 <a class="code" href="group__gzll__02__api.html#ga838445eeb3dabb47b746708bf4cf851d" title="Enumerator used for selecting the transmit (TX) power.">nrf_gzll_tx_power_t</a> <a class="code" href="group__gzll__02__api.html#ga48046c21e470386267c79b9ee08d5026" title="Get function counterpart to nrf_gzll_set_tx_power().">nrf_gzll_get_tx_power</a>(<span class="keywordtype">void</span>);
<a name="l00761"></a>00761 
<a name="l00762"></a>00762 
<a name="l00771"></a>00771 <span class="keywordtype">bool</span> <a class="code" href="group__gzll__02__api.html#ga31ea7c06c87b5068dcd39be89f390142" title="Set the radio datarate.">nrf_gzll_set_datarate</a>(<a class="code" href="group__gzll__02__api.html#gabb5224046a930344cc3f5586bf9b064a" title="Enumerator used for selecting the radio datarate.">nrf_gzll_datarate_t</a> data_rate);
<a name="l00772"></a>00772 
<a name="l00773"></a>00773 
<a name="l00779"></a>00779 <a class="code" href="group__gzll__02__api.html#gabb5224046a930344cc3f5586bf9b064a" title="Enumerator used for selecting the radio datarate.">nrf_gzll_datarate_t</a> <a class="code" href="group__gzll__02__api.html#gac815ca7c9ad81b9193f2f1d1aa7aa302" title="Get function counterpart to nrf_gzll_set_datarate().">nrf_gzll_get_datarate</a>(<span class="keywordtype">void</span>);
<a name="l00780"></a>00780 
<a name="l00781"></a>00781 
<a name="l00785"></a>00785 <span class="comment">/******************************************************************************/</span>
<a name="l00788"></a>00788 <span class="comment">/******************************************************************************/</span>
<a name="l00789"></a>00789 
<a name="l00790"></a>00790 
<a name="l00796"></a>00796 <a class="code" href="group__gzll__02__api.html#gaa51ebe606da1801bb1ce72b2257356ab" title="Enumerator used for error codes for Gazell API functions.">nrf_gzll_error_code_t</a> <a class="code" href="group__gzll__02__api.html#gab36bed58f70b88b8fede5d3d8fa3f1c7" title="Gets the Gazell error code.">nrf_gzll_get_error_code</a>(<span class="keywordtype">void</span>);
<a name="l00797"></a>00797 
<a name="l00798"></a>00798 
<a name="l00804"></a>00804 <span class="keywordtype">void</span> <a class="code" href="group__gzll__02__api.html#gaeeb3f4c59577bed1590267385d5e13f2" title="Reset the Gazell error code.">nrf_gzll_reset_error_code</a>(<span class="keywordtype">void</span>);
<a name="l00805"></a>00805 
<a name="l00806"></a>00806 
<a name="l00809"></a>00809 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="nrf__gzll_8h.html">nrf_gzll.h</a>      </li>

    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
